home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 36
/
Amiga Format CD36 (1999-01-22)(Future Publishing)(GB)[!][issue 1999-02].iso
/
-seriously_amiga-
/
comms
/
other
/
makeftpscript
/
makeftpscript.readme
next >
Wrap
Text File
|
1998-11-30
|
4KB
|
125 lines
Short: Make FTP script for UNIX system (v1.4)
Author: domagal@uci.agh.edu.pl (Grzegorz Fitrzyk)
Uploader: domagal@uci.agh.edu.pl (Grzegorz Fitrzyk)
Type: comm/misc
If you have rights to use account on UNIX based system and you're
coming to internet by phone line, it will be very good way for you
to save some money. Autor of this script is collecting some part
of recent files which he will to download, and from time to time
he is making script with many NCFTP commands. After it hi upload
it to his account on UNIX system and turn it on by commands:
screen -R
chmod 700 script
script
press <ctrl-A-C> (it will open new screen)
and when a screen is change hi is writing:
screen -d
logout
Now hi turn off modem, and wait some time, and later hi doing FTP
to his account and download all files.
There is a many way to start script under UNIX but problem is that
when you logout, your script is hangin off. This method is working.
If on your server's no SCREEN command then try:
batch < script
By the way, if you have low priority as a user of server, you must
wait some time when it will be done (e.g. few days). When it will
be download to your account, you will receive e-mail with report.
Also you can try AT command:
at hh:mm < script
(where hh:mm is time when script will be start) e.g:
at 1:00 < script
(at 1 o'clock script will start).
This script is doing from RECENT file script for UNIX based system.
For example, every line of your RECENT file it will change to chain
of command:
orginal line of RECENT file:
...
WatchWatcher.lha util/time 14K+Checks your clock's sanity V1.3 By F.Ultra
...
after use MakeFTPScript.rexx
...
ncftp ftp.wustl.edu:pub/aminet/util/time/WatchWatcher.lha
ncftp ftp.wustl.edu:pub/aminet/util/time/WatchWatcher.readme (with README
switch on)
...
Usage: rx makeFTPScript.rexx ADDRESS/K SOURCE/K DEST/K README/S
where: ADDRESS is address of ftp server where you like to download.
SOURCE is filename of your RECENT file.
DEST is filename of output file. (I'm using script name)
README is switch which allow to make additional line with ".readme"
Req: ARexx
Filenote (system file)
Usage: rx checkFTPScript.rexx SOURCE/K DEST/K DIR/K INDEX/S
where: SOURCE is filename of script
DEST is filename of new script
DIR is directory with all files, which was download by SOURCE-script.
INDEX after using this switch script is checking size of downloaded
files and comparing it with data in file with ".idx" extension,
which is doing by makeFTPscript.rexx (v1.4+).
Req: ARexx
List (System file)
Delete (System file)
Filenote (System file)
This script is needed for a situation when some files was missed by server.
When you see that you don't have some files which was available in script file,
you can use this checkFTPScript.rexx and it will make new script with all files
what was lost.
New feature! The script count total size of requested files and write it
to COMMENT field of script file.
New script CheckFTPScript.rexx now available!
Two Batch-files for DOS usage (if you'll use this scripts with
DOPUS, use Batch-file, because ARexx will have problem with
path like "Ram Disk:script".
Batch files:
mkftp ADDRESS/K,SOURCE/K,DEST/K,README/S
e.g.:
mkftp ftp.wustl.edu ram:recent ram:script
ckftp SOURCE/K,DEST/K,DIR/K,INDEX/S
e.g.:
ckftp ram:script ram:script_new dh2:download index
History:
1.2 Fixed problem with slash in DIR option.
1.3 Fixed problem with "?" as a size of file.
1.32 The script count total size of requested files and write it
to COMMENT field of script file.
New script CheckFTPScript.rexx now available!
1.4 MakeFTPScript is now making INDEX file. When you're using
CheckFTPScript, script is checking size of downloaded files
and comparing it to data in INDEX file. It's very useful
when some files is truncated or size of it is zero.